import { createRouter, createWebHistory } from 'vue-router'
import Home from "@/views/Home.vue"

const routes = [
  {
    path: '/',
    component: Home
  },
  {
    path: "/note",
    component: () => import('@/views/NoteFileFolder.vue')
  },
  {
    path: "/note/:dir/:file",
    component: () => import('@/views/Note.vue')
  },
  {
    path: "/note/:name",
    component: () => import('@/views/NoteFiles.vue')
  },
  {
    path: "/login",
    component: () => import('@/views/Login.vue')
  },
  {
    path: "/manage",
    component: ()=> import('@/views/Manage.vue')
  },
  {
    path: "/movieList",
    component: () => import('@/views/Movie.vue')
  },
  {
    path: "/movie/:id/:file",
    component: () => import('@/views/MovieNote.vue')
  },
  {
    path: "/messageBox",
    component: () => import("@/views/MessageBox.vue")
  },
  {
    path: "/photo",
    component: () => import("@/views/Photo.vue")
  },
  {
    path: "/ukelele",
    component: () => import("@/views/Ukelele.vue")
  },
  {
    path: "/project",
    component: () => import("@/views/Project.vue")
  },
  {
    path: "/essay",
    component: () => import("@/views/Essay.vue")
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
